package com.itbaizhan.mapper;

import com.itbaizhan.pojo.Student;

import java.util.List;

public interface StudentMapper {
    //一对一关系
    List<Student> findAll();
    //一对多分解式查询
    //根据班级ID查询   从表
    List<Student> findStudentById(int id);

    //一对一 分解式查询   主表  select * from student
    //    select * from classes where cid = ?
    List<Student> findAll2();

}
